package javaBase.nowcoder.HJ105_A_记负均正II;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static double sum = 0.0d;
    public static int count = 0;


    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        ArrayList<Integer> integers = new ArrayList<>();
        while ((str = br.readLine()) != null) {
            integers.add(Integer.parseInt(str));
        }
        integers.stream().filter(x -> x > 0).forEach(x -> {
            sum += x;
            count++;
        });
        System.out.println(integers.size() - count);
        if (count != 0) {
            System.out.println(String.format("%.1f", sum / count));
        } else {
            System.out.println("0.0");
        }


    }

}
